<?php 
 	$session_user=new Zend_Session_Namespace('auth');
 	$request=Zend_Controller_Front::getInstance()->getRequest();

	if(isset($session_user->arr_module)){
		$arr_module = $session_user->arr_module;
?>
	<!-- <script language="javascript">
		function redirectToolbar(urlsite){
	         window.location.href=urlsite;
		}
	</script> -->
	<ul class="main_menu">
<?php
		foreach($arr_module as $module){
			$tr = Application_Form_FrmLanguages::getCurrentlanguage();
			$active = ($request->getModuleName() == $module)? "class='active'" : "";
			$url = BASE_URL.'/'.$module;?>
			<li <?php echo $active;?>>
				<a href="<?php echo $url;?>"><?php echo $tr->translate(strtoupper($module));?></a>
			</li>
<?php } ?>
</ul>
<?php } ?>